Learn R Programming

Rfssa (version 2.0.0)

[.fts: Indexing into Functional Time Series

Description

An indexing method for functional time series (fts).

Usage

# S3 method for fts
[(Y, i = "index")

Arguments

Y

An object of class fts.

i

The index value.

Value

An object of class fts.

See Also

fts

Examples

Run this code
# NOT RUN {
require(Rfssa)
load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Callcenter.RData")
D <- matrix(sqrt(Callcenter$calls), nrow = 240)
u <- seq(0, 1, length.out = 240) # Define domain of functional data
d <- 22 # number of basis elements
Y <- fts(list(D), list(list(d, "bspline")), list(u))
plot(Y)
plot(Y[10:15])
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab